#ifndef TKXMLREADER_H
#define TKXMLREADER_H
#include <QTreeWidget>
#include <QXmlStreamReader>
class XmlReader
{
public:
    explicit XmlReader(QTreeWidget *tree);
    bool readFile(const QString &fileName);
    void readBookindexElement();
    void readEntryElement(QTreeWidgetItem *parent);
    void readPageElement(QTreeWidgetItem *parent);
    void skipUnknownElement();
private:
    QXmlStreamReader reader;
    QTreeWidget *treeWidget;
};

#endif // TKXMLREADER_H
